{foreach name="fileloop" from=$files item=file}
	{if $file.filetype=="dir"}
		<li id="filemanager_dir_{$file.filename}"><span>
			<a href="javascript:void(0);" onclick="{strip}{literal}
			
			xajax.request(
			{
				ccdsclass:'ccdsFileManager',
				ccdsfun:'FileManagerDetails'
			},
			{
				parameters:[
				{{/literal}
					dir:'{$dir}{$file.filename}/',
					root:CMS.FileManager.root,
					project_id:CMS.FileManager.project_id
	
				{literal}}
				]
			});						
			
			{/literal}{/strip}" class="navi">
			<img src="{$CMS_WEB_DIR}icons/16x16/{$file.icon}" height="12" width="12" border="0" /> {$file.filename|truncate:40:"..."}</a>
			</span>
			<ul class="ajax">
				<li><span>{literal}{url:{
			ccdsfun:'FileManagerFileListing',
			ccdsclass:'ccdsFileManager',
			parameters:{
				{/literal}
					dir:'{$dir}{$file.filename}/',
					root:CMS.FileManager.root,
					project_id:CMS.FileManager.project_id
				{literal}
			}
			}}{/literal}</span></li>
			</ul>
		</li>
	{/if}
{/foreach}
